<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=no" />
<title>Document</title>
<script type="text/javascript">
//alert(window.orientation);
window.addEventListener('orientationchange', function(e) {
	//alert("您进行了横竖屏切换");
	alert(window.orientation);
});
/*
	window.orientation:
		竖屏：0||180
		横屏：90||-90
*/
</script>
</head>
<body>
	
</body>
</html>